// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'babel-polyfill'
import 'classlist-polyfill'
// import
import api from './api/index.js'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import VDistpicker from 'v-distpicker'
import Header from './component/header.vue'
import Footer from './component/footer.vue'
//import VueAwesomeSwiper from 'vue-awesome-swiper'
//Vue.use(VueAwesomeSwiper)
require('swiper/dist/css/swiper.css')
Vue.component('v-distpicker', VDistpicker)
Vue.component('v-header', Header)
Vue.component('v-footer', Footer)

Vue.use(ElementUI, { size: 'medium' })

// 引用API文件
// 将API方法绑定到全局
Vue.prototype.$login = 0
Vue.prototype.$api = api
Vue.prototype.$src = api.root
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
